package com.luweijie.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.luweijie.entity.Mountings;
import com.luweijie.entity.vo.Result;
import com.luweijie.service.CalculatorBackgroundService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/History")
@Slf4j
public class MountingsHistoryController {

    @Autowired
    CalculatorBackgroundService calculatorBackgroundService;
    @GetMapping("/get/query")
    public Result Query(Page page){
        IPage<Mountings> query = calculatorBackgroundService.query(page);
        return Result.success(query);
    }


}
